franc0is / test-dept Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/test-dept
License: GNU General Public License v3.0
Automatically exported from code.google.com/p/test-dept
License: GNU General Public License v3.0
README for the Test Dept. Framework =================================== Please refer to a quite comprehensive guide on http://code.google.com/p/test-dept/wiki/TestDept for more information on the Test Dept. framework. Contact Information ------------------- M Norrby <[email protected]>.
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
> 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:
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.