Package: cunit
Version: 2.1
Severity: important
Tags: patch

--- Please enter the report below this line. ---
Makes the library unusable with single testing.
That is, launching a unique test from the registry.


--- System information. ---
Architecture: amd64
Kernel:       Linux 3.2.0-4-amd64

Debian Release: 7.1
  990 stable          www.deb-multimedia.org 
  990 stable          security.debian.org 
  990 stable          ftp.fr.debian.org 

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.




Description: Fix condition
 Already fixed upstream.
 .
 cunit (2.1-0.dfsg-12) unstable; urgency=low
 .
Author: Philipp Benner <[email protected]>
Bug-Debian: http://bugs.debian.org/710161

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- cunit-2.1-0.dfsg.orig/CUnit/Sources/Basic/Basic.c
+++ cunit-2.1-0.dfsg/CUnit/Sources/Basic/Basic.c
@@ -128,9 +128,9 @@ CU_ErrorCode CU_basic_run_test(CU_pSuite
 {
   CU_ErrorCode error;
 
-  if (NULL != pSuite)
+  if (NULL == pSuite)
     error = CUE_NOSUITE;
-  else if (NULL != pTest)
+  else if (NULL == pTest)
     error = CUE_NOTEST;
   else if (CUE_SUCCESS == (error = basic_initialize()))
     error = basic_run_single_test(pSuite, pTest);

Reply via email to