Skip to content

Commit

Permalink
+ Minor fix in test feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 22, 2014
1 parent fc8724f commit 7f307e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/App/FeatureTest.cpp
Expand Up @@ -33,6 +33,10 @@
#include "Material.h"
#include "Material.h"

#ifdef _MSC_VER
#pragma warning( disable : 4700 )
#endif

#define new DEBUG_CLIENTBLOCK
using namespace App;

Expand Down Expand Up @@ -109,6 +113,7 @@ FeatureTest::~FeatureTest()
{

}

DocumentObjectExecReturn *FeatureTest::execute(void)
{

Expand All @@ -124,7 +129,7 @@ DocumentObjectExecReturn *FeatureTest::execute(void)
case 3: *i=0;printf("%i",*i);break; // seg-vault
case 4: j=0; printf("%i",1/j); break; // int devision by zero
case 5: f=0.0; printf("%f",1/f); break; // float devision by zero
case 6: s = malloc(3600000000);break; // float devision by zero
case 6: s = malloc(3600000000);break; // out-of-memory
}

ExecCount.setValue(ExecCount.getValue() + 1);
Expand Down

0 comments on commit 7f307e5

Please sign in to comment.