diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-14 22:06:10 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-14 22:06:10 +0100 |
commit | 9e7f4c9d43b310c280cd6432cd4150411f4b914e (patch) | |
tree | c7be57a91602c228f05ff1cab2f186dcc6635733 /systemtest/mcc-execute.tests | |
parent | 009e450626194299ee4b5ccb8463ac64e127fde6 (diff) |
Added system tests
Diffstat (limited to 'systemtest/mcc-execute.tests')
-rw-r--r-- | systemtest/mcc-execute.tests/exitcodes.exp | 17 | ||||
-rw-r--r-- | systemtest/mcc-execute.tests/test-addition.cpp (renamed from systemtest/mcc-execute.tests/test1.cpp) | 0 | ||||
-rw-r--r-- | systemtest/mcc-execute.tests/test-return-1.cpp (renamed from systemtest/mcc-execute.tests/test.cpp) | 0 |
3 files changed, 2 insertions, 15 deletions
diff --git a/systemtest/mcc-execute.tests/exitcodes.exp b/systemtest/mcc-execute.tests/exitcodes.exp index 6e8b632..48d19a1 100644 --- a/systemtest/mcc-execute.tests/exitcodes.exp +++ b/systemtest/mcc-execute.tests/exitcodes.exp @@ -1,18 +1,5 @@ # https://www.embecosm.com/appnotes/ean8/ean8-howto-dejagnu-1.0.html -spawn systemtest/mcc-execute.tests/test1 - -expect eof - -lassign [wait] pid spawnid os_error_flag value - -if {$os_error_flag == 0} { - if {$value == 3} { - pass "exit status: $value" - } else { - fail "exit status: $value" - } -} else { - fail "errno: $value" -} +runtest_exit_code "Return 1" "systemtest/mcc-execute.tests/test-return-1" 1 +runtest_exit_code "Addition" "systemtest/mcc-execute.tests/test-addition" 3 diff --git a/systemtest/mcc-execute.tests/test1.cpp b/systemtest/mcc-execute.tests/test-addition.cpp index 3a03f6f..3a03f6f 100644 --- a/systemtest/mcc-execute.tests/test1.cpp +++ b/systemtest/mcc-execute.tests/test-addition.cpp diff --git a/systemtest/mcc-execute.tests/test.cpp b/systemtest/mcc-execute.tests/test-return-1.cpp index 40cbb54..40cbb54 100644 --- a/systemtest/mcc-execute.tests/test.cpp +++ b/systemtest/mcc-execute.tests/test-return-1.cpp |