Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why does assertTrue(true) or assertTrue(1) timeout? #117

Closed
reymalahay opened this issue Nov 1, 2023 · 1 comment
Closed

why does assertTrue(true) or assertTrue(1) timeout? #117

reymalahay opened this issue Nov 1, 2023 · 1 comment

Comments

@reymalahay
Copy link

reymalahay commented Nov 1, 2023

hi there,

Is your feature request related to a problem? Please describe.
i have a test that asserts the output of a sut that returns a bool value. more specifically, the happy case output is supposed to be true. when i assertTrue the output, the test times out.

Describe the solution you'd like
assertTrue (or assertFalse) should pass when an appropriate value is passed in as an argument.

Describe alternatives you've considered
n/a.

Additional context
environment: Linux
compiler: /usr/bin/g++

sample test:

testing(must_be_true) {

    bool isTrue = true;
    assertTrue(isTrue);
}

Makefile:

APP_NAME := lab1_code_test
ARDUINO_LIBS := AUnit
include ${EPOXY_HOME}/EpoxyDuino.mk

commands:

make clean

make

make run

output log:

./lab1_code_test.out
TestRunner started on 1 test(s).
Test must_be_true timed out.
TestRunner duration: 10.006 seconds.
TestRunner summary: 0 passed, 0 failed, 0 skipped, 1 timed out, out of 1 test(s).
make: *** [/home/reymalahay/dev/EpoxyDuino/EpoxyDuino.mk:243: run] Error 1

please advise.

thanks in advance,
rey malahay

@bxparks
Copy link
Owner

bxparks commented Nov 2, 2023

Duplicate of #116

@bxparks bxparks marked this as a duplicate of #116 Nov 2, 2023
@bxparks bxparks closed this as completed Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants