Git Product home page Git Product logo

test-dept's Introduction

test-dept's People

Watchers

 avatar

test-dept's Issues

128 char assert_string_equals limitation

What steps will reproduce the problem?
1. Use Test Dept
2. Use assert_string_equals with a long string
3.

What is the expected output? 
The strings are equal or not

What do you see instead?
Test dept will only compare strings up to 128 char.

Please provide any additional information below.

Why are you placing this limit on the length of strings. Test dept uses strcmp 
and the 128 char limit is unnecessary.

Original issue reported on code.google.com by [email protected] on 2 Jun 2011 at 7:40

segfault caused by proxies for an external variable

> What steps will reproduce the problem?

1. Download the attached test case and files
2. type "make test_dept_run"

> What is the expected output? What do you see instead?

Test case segfaults at "bar++;" in foo.c, but the test should pass. If you 
compile it without including the proxy object files (swapping 
foo_using_proxies.o and foo_proxies.o for foo.o), then the test passes 
successfully as expected.

> What version of the product are you using? On what operating system?

Test Dept 0.14 on Ubuntu 11.04 (64 bit).

> Please provide any additional information below.

I can't think of a good use case for mocking external variables (since the test 
case could just use the external variable directly). Maybe switches or proxies 
don't need to be generated for them?

Original issue reported on code.google.com by [email protected] on 27 Oct 2011 at 4:48

Attachments:

running tests in debugger

What steps will reproduce the problem?
1. Add -g to compile and link options
2. build tests
3. run gdb on executable
4. put breakpoint on test function
5. run

What is the expected output? What do you see instead?
I expect that the debugger will break at the breakpointed function. Instead the 
test executable completes and exits.

What version of the product are you using? On what operating system?
The latest downloaded yesterday. Fedora 13

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 8 Sep 2010 at 10:14

Failures on FreeBSD

What steps will reproduce the problem?
1. Download and extract the 0.14.2 source tarchive to a 32-bit FreeBSD system
2. cd test-dept && gmake check

What is the expected output? What do you see instead?
The build fails because it can't find "sym2asm_i386.awk". This is solved with 
"cp src/sym2asm_i686.awk src/sym2asm_i386.awk".

After that, the build fails on the tests in examples/example_project because 
the real foo() and malloc() are called instead of the replacements. I 
investigated and found that sym2repl wasn't printing anything, no matter what 
was given to it. It turns out that the awk command was somehow expanding to 

    awk '{print $NF " " $NF "_test_dept_proxy" }' ""

with the empty string argument apparently causing awk to print nowhere on 
FreeBSD. I deleted the "${SUT_SYMBOLS_FILE}" from sym2repl and "gmake check" 
succeeded afterward. 

Here's a patch that eliminates it, but the issue also goes away if you remove 
the double quotes from the variable expansion in the awk command:

Index: src/sym2repl
===================================================================
--- src/sym2repl    (revision 245)
+++ src/sym2repl    (working copy)
@@ -40,8 +40,4 @@
    ;;
 esac

-if [ "$SUT_SYMBOLS_FILE" != "" ]; then
- [ -f "$SUT_SYMBOLS_FILE" ] || err "no readable file named 
\"$SUT_SYMBOLS_FILE\""
-fi
-
-awk '{print $NF " " $NF "_test_dept_proxy" }' "${SUT_SYMBOLS_FILE}"
+awk '{print $NF " " $NF "_test_dept_proxy" }'

Original issue reported on code.google.com by [email protected] on 21 Oct 2011 at 3:40

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.