Skip to content

Commit

Permalink
[asl] Switch to return 1; as failure indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienRenaud committed Jun 18, 2024
1 parent ca20405 commit b8531b2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ begin

assert (42 == 3);

return 0;
return 1;
end
9 changes: 0 additions & 9 deletions asllib/tests/language.t/Rfrwd-2.asl

This file was deleted.

4 changes: 1 addition & 3 deletions asllib/tests/language.t/Rfrwd.asl
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
//R_FRWD: It is an error to use a tab character in ASL files.

// RUN: not interp %s | FileCheck %s

//NB: there is a tab in the file, and the test is checking whether this is
//valid

func main() => integer
begin
return 0;
return 1;
end
4 changes: 1 addition & 3 deletions asllib/tests/language.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Test Inxkd.asl:

Test Rfrwd.asl:
$ aslref Rfrwd.asl
[1]

Test Rswqd.asl:
$ aslref Rswqd.asl
Expand Down Expand Up @@ -2834,9 +2835,6 @@ Test Isbwr-2.asl:
Test Izddj-2.asl:
$ aslref Izddj-2.asl

Test Rfrwd-2.asl:
$ aslref Rfrwd-2.asl

Test Rncnq-2.asl:
$ aslref Rncnq-2.asl

Expand Down

0 comments on commit b8531b2

Please sign in to comment.