diff --git a/.gitignore b/.gitignore index 15a1abc..f3b4ccc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ /.test262/data /.test262/test.v8 /.test262/test.otto -/.test262/.failing +/.test262/.fail diff --git a/.test262/Makefile b/.test262/Makefile index b4b6dde..5f54dee 100644 --- a/.test262/Makefile +++ b/.test262/Makefile @@ -30,12 +30,12 @@ uncull: gauntlet: -$(TEST) $(WITH_otto) 2>/dev/null | ./gauntlet - @[ -f .failing ] && head .failing + @[ -f .fail ] && head .fail -try: .failing +try: .fail head $< - $(otto) $< + cat shim.js $< | $(otto) -look: .failing +look: .fail cat $< diff --git a/.test262/gauntlet b/.test262/gauntlet index 18b97e0..a7f5cc1 100755 --- a/.test262/gauntlet +++ b/.test262/gauntlet @@ -11,8 +11,8 @@ while () { print "$_\n"; my $test = "data/test/suite/$1.js"; print "$test\n"; - unlink ".failing"; - symlink $test, ".failing"; + unlink ".fail"; + symlink $test, ".fail"; exit 64; } elsif (m/passed|as expected$/) { $passed += 1 diff --git a/.test262/shim.js b/.test262/shim.js new file mode 100644 index 0000000..275e03e --- /dev/null +++ b/.test262/shim.js @@ -0,0 +1,5 @@ +function $ERROR(message) { + console.log(message) +} + +// ---