Skip to content
Permalink
Browse files

+ Minor fix in test feature

  • Loading branch information...
wwmayer committed Feb 22, 2014
1 parent fc8724f commit 7f307e520026f955c15e18fe1be1c0481b68d8ce
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/App/FeatureTest.cpp
@@ -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;

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

}

DocumentObjectExecReturn *FeatureTest::execute(void)
{

@@ -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);

0 comments on commit 7f307e5

Please sign in to comment.
You can’t perform that action at this time.