From 499318c0b30777ffbefdd42cab03afe29e5660ae Mon Sep 17 00:00:00 2001 From: Hadrien Renaud Date: Tue, 18 Jun 2024 12:05:38 +0100 Subject: [PATCH] [asl] Switch to return 1; as failure indicator --- .../ASLSemanticsReference.t/SemanticsRule.SAssertNo.asl | 2 +- asllib/tests/language.t/Rfrwd-2.asl | 9 --------- asllib/tests/language.t/Rfrwd.asl | 4 +--- asllib/tests/language.t/run.t | 4 +--- 4 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 asllib/tests/language.t/Rfrwd-2.asl diff --git a/asllib/tests/ASLSemanticsReference.t/SemanticsRule.SAssertNo.asl b/asllib/tests/ASLSemanticsReference.t/SemanticsRule.SAssertNo.asl index 13c095468..006c476cc 100644 --- a/asllib/tests/ASLSemanticsReference.t/SemanticsRule.SAssertNo.asl +++ b/asllib/tests/ASLSemanticsReference.t/SemanticsRule.SAssertNo.asl @@ -3,5 +3,5 @@ begin assert (42 == 3); - return 0; + return 1; end diff --git a/asllib/tests/language.t/Rfrwd-2.asl b/asllib/tests/language.t/Rfrwd-2.asl deleted file mode 100644 index 4fe3a7e7d..000000000 --- a/asllib/tests/language.t/Rfrwd-2.asl +++ /dev/null @@ -1,9 +0,0 @@ -//R_FRWD: It is an error to use a tab character in ASL files. -// RUN: not interp %s | FileCheck %s - -func main() => integer -begin - return 0; -end - -// XFAIL: * diff --git a/asllib/tests/language.t/Rfrwd.asl b/asllib/tests/language.t/Rfrwd.asl index 005e32021..a16912cff 100644 --- a/asllib/tests/language.t/Rfrwd.asl +++ b/asllib/tests/language.t/Rfrwd.asl @@ -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 diff --git a/asllib/tests/language.t/run.t b/asllib/tests/language.t/run.t index ffc62f074..9ff0dd446 100644 --- a/asllib/tests/language.t/run.t +++ b/asllib/tests/language.t/run.t @@ -82,6 +82,7 @@ Test Inxkd.asl: Test Rfrwd.asl: $ aslref Rfrwd.asl + [1] Test Rswqd.asl: $ aslref Rswqd.asl @@ -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