Comments (1)
The above error is because most ditros have added this flag by default.
An easy fix, see below diff I have used for 5.2.0.
--- bcunit-5.2.0/BCUnit/Sources/Curses/Curses.c.orig
+++ bcunit-5.2.0/BCUnit/Sources/Curses/Curses.c
@@ -952,11 +952,11 @@
snprintf(szTemp, STRING_LENGTH, _("Commands: R - run all tests in suite %s"),
pSuite->pName);
- mvwprintw(details_pad.pPad, 0, 0, szTemp);
+ mvwprintw(details_pad.pPad, 0, 0, "%s", szTemp);
mvwprintw(details_pad.pPad, 1, 0, _(" S - Select and run a test"));
snprintf(szTemp, STRING_LENGTH, _(" L - List all tests registered in suite %s"),
pSuite->pName);
- mvwprintw(details_pad.pPad, 2, 0, szTemp);
+ mvwprintw(details_pad.pPad, 2, 0, "%s", szTemp);
mvwprintw(details_pad.pPad, 3, 0, _(" A - Activate or deactivate a test (toggle)"));
mvwprintw(details_pad.pPad, 4, 0, _(" F - Show failures from last test run"));
mvwprintw(details_pad.pPad, 5, 0, _(" M - Move up to main menu"));
@@ -1068,14 +1068,14 @@
}
snprintf(szTemp, STRING_LENGTH, "%s: %s", _("Suite"), pSuite->pName);
- mvwprintw(details_pad.pPad, 0, 0, szTemp);
+ mvwprintw(details_pad.pPad, 0, 0, "%s", szTemp);
snprintf(szTemp, STRING_LENGTH,
"%*s %-*s%*s",
width[0], _("#"),
width[1], _("Test Name"),
width[2], _("Active?"));
- mvwprintw(details_pad.pPad, 1, 0, szTemp);
+ mvwprintw(details_pad.pPad, 1, 0, "%s", szTemp);
for (i = 0, pCurTest = pSuite->pTest ;
NULL != pCurTest ;
@@ -1158,7 +1158,7 @@
snprintf(szTemp, STRING_LENGTH, _(" 1 - Inactive suites/tests treated as runtime failures %s"),
(CU_FALSE != CU_get_fail_on_inactive()) ? _("Yes") : _("No "));
- mvwprintw(details_pad.pPad, 2, 0, szTemp);
+ mvwprintw(details_pad.pPad, 2, 0, "%s", szTemp);
refresh_details_window();
read_input_string(_("Enter number of option to change : "), szTemp, STRING_LENGTH);
option_num = atol(szTemp);
from bcunit.
Related Issues (7)
- shared files and cmake config files is installed on different path
- FSF address is not correct in COPYING file
- FSF address is not correct in doc/fdl.html file
- Main CMakeLists.txt contains package version of 3.0.2 and not 5.2.0 (in that release) or above in git master
- FTBFS when ENABLE_TEST=ON
- Handle not being a git repo better
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcunit.